$(document).ready(function(){
	
		var container = $('div.container');
		
		// validate the form when it is submitted
		var validator = $("#form1").validate({
			submitHandler: function(form) {
				form.submit();	
			},
			errorContainer: container,
			errorLabelContainer: $("ol", container),
			wrapper: 'li',
			meta: "validate",
			focusInvalid:false,
			rules: { 
			     "fieldMap['description'].value":{ //备注
			      maxlength:2000
			     }
		    },
		    
		    messages:{
			     "fieldMap['description'].value":{   //备注
		    		maxlength: "备注最大不能超过2000个字符！"
		    	}
		    }
		});
		});
		
		